package com.molichuxing.gateway.bff.orders.entity.request.modify;

import com.molichuxing.framework.dto.RequestRootDto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用车报告确认请求vo
 * 
 * @author zoumingyu
 * @date 2019年10月17日
 *
 */
@Data
public class ReportModifyVo extends RequestRootDto {
	private static final long serialVersionUID = -4372398627863034117L;

	@ApiModelProperty(value = "订单号")
	private Long orderCode;

	@ApiModelProperty(value = "是否同意（0：不同意, 1：同意）")
	private Boolean type;

	@ApiModelProperty(value = "客户不认可备注（不同意时必填）")
	private String remark;
	
	public ReportModifyVo setType(Integer type) {
		this.type = type == 1 ? true : false;
		return this;
	}
}
